package d0327;

public class Student {

        private int id;
        private String name;
        private int score;

        public Student(int id, String name, int score) {
            this.id = id;
            this.name = name;
            this.score = score;

        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getScore() {
            return score;
        }

        public void setScore(int score) {
            this.score = score;
        }
        public String toString() {
            return "学号：" + id +
                    ", 姓名：" + name  +
                    ", 成绩：" + score ;
        }
    }

